import { request } from "@/utils/http";

export function cartAdd(data: any) {
    return request({
      method: 'POST',
      url: '/materials/api/client/cart/add',
      data
    });
}

export function removeCar(data: any) {
  return request({
    method: 'POST',
    url: '/materials/api/client/cart/remove',
    data
  });
}

export function getCarList(params: any) {
  return request({
    method: 'GET',
    url: '/materials/api/client/cart/list',
    params
  });
}

export function calculateCartTotalPrice(data: any) {
  return request({
    method: 'POST',
    url: '/materials/api/client/cart/calculateCartTotalPrice',
    data
  });
}